package com.jic.member.provider.service;

import com.jic.common.base.vo.RestResult;
import com.jic.member.request.LabelRequest;
import com.jic.member.request.MememberForMarket;
import com.jic.member.request.MememberUserForMarketRequest;
import com.jic.member.response.MememberUserForMarketResponse;
import com.jic.member.response.MememberUserResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * description: MemberUserRpcService
 * date: 2020/6/8 11:08
 * author: MJ
 * version: 1.0
 */
@FeignClient(name = "jic-member",path = "/memberUser")
public interface MemberUserProviderService {

    @PostMapping("/queryMemberByPhone")
    List<MememberUserResponse> queryMemberByPhone(@Param("phoneList") String phoneList);

    /**
     * 根据标签查询用户
     *
     * @param labelRequest
     * @return
     */
    @PostMapping("/queryByLabelType")
    List<String> queryByLabelType(@RequestBody LabelRequest labelRequest);


    @PostMapping("/listMemberUserInfoForMarket")
    List<MememberUserForMarketResponse> listMemberUserInfoForMarket(@RequestBody MememberUserForMarketRequest request);

    @PostMapping("/memberUserInfoForMarket")
    RestResult<List<String>> memberUserInfoForMarket(@RequestBody MememberForMarket request);

}
